import { inject } from 'vue';
import riderConnect from '../rider-connect/rider-connect.vue'
import riderTurnOrder from '../rider-turn-order/rider-turn-order.vue'

export default {
    components: {
        riderConnect,
        riderTurnOrder
    },
    setup() {
        console.log(`---------rider-common-popup----------`)


        const riderConnectRef = inject(`riderConnectRef`);
        const riderTurnOrderRef = inject(`riderTurnOrderRef`);
        const riderCurrentPopupItData = inject(`riderCurrentPopupItData`);
        const riderCurrentPopupItDragBtnStyle = inject(`riderCurrentPopupItDragBtnStyle`);
        const openPopup = inject(`openPopup`);
        const closePopup = inject(`closePopup`);

        return {
            riderConnectRef,
            riderTurnOrderRef,
            riderCurrentPopupItData,
            riderCurrentPopupItDragBtnStyle,
            openPopup,
            closePopup
        }
    }
}